<template>
    <ul>
        <li v-for="item in goodslist" :key="item.id" @click="$router.push('/detail?id=' + item.id)">
            <img :src="item.list_pic_url" alt="">
            <p>{{ item.name }}</p>
            <p>{{ item.retail_price }}</p>
        </li>
    </ul>
</template>

<script setup lang='ts'>
import { defineProps } from 'vue';
const props = defineProps(['goodslist']);


</script>
<style scoped lang="scss">
ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    li {
        width: 50%;

        img {
            width: 100%;
        }
    }
}
</style>